-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: bundle the root package.json as an installable package #32544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8033db1
to
ba709b7
Compare
cypress
|
Project |
cypress
|
Branch Review |
chore/bundle_package_root
|
Run status |
|
Run duration | 21m 02s |
Commit |
|
Committer | Bill Glesias |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
4
|
|
28
|
|
0
|
|
791
|
View all changes introduced in this branch ↗︎ |
UI Coverage
63.16%
|
|
---|---|
|
26
|
|
48
|
Accessibility
99.02%
|
|
---|---|
|
0 critical
3 serious
1 moderate
0 minor
|
|
19
|
ba709b7
to
e318df5
Compare
jennifer-shehane
approved these changes
Sep 30, 2025
cacieprins
approved these changes
Sep 30, 2025
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
cacieprins
pushed a commit
that referenced
this pull request
Oct 1, 2025
* chore: bundle the root package.json as an installable package * Update packages/root/README.md Co-authored-by: Jennifer Shehane <jennifer@cypress.io> * Update guides/esm-migration.md Co-authored-by: Jennifer Shehane <jennifer@cypress.io> * Update packages/root/README.md Co-authored-by: Jennifer Shehane <jennifer@cypress.io> --------- Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
changes
@packages/root
to bundle the rootpackage.json
so@packages/root
can be an true installable package. This means that regardless of where the package is installed, it will always be able to "discover" the rootpackage.json
, which is used in a few packages, such as theconfig
,types
, etc.What this means, is instead of trying to discover the root package relative to itself, we now directly bundle the root
package.json
into the@packages/root
bundle viarollup
CommonJS bundle file
ESM bundle file
we currently need both outputs in order to consume ESM in the browser via
vite
(app and launchpad) and CJS to consume the package in the node process (server, data-context, etc)This step is crucial in order to make the other packages bundle from source.
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?Note
Introduce a built @packages/root that bundles the repo’s package.json (CJS+ESM) with build tooling updates, CI filter tweaks, and dependency bumps.
index.ts
) and bundle rootpackage.json
via Rollup, outputtingindex.js
(CJS) andindex.mjs
(ESM).rollup.config.mjs
,tsconfig.json
, build scripts,.gitignore
, and README; updatepackage.json
(description, scripts, devDeps,module
).scripts/binary/build.ts
, write rootpackage.json
version
during build; remove version update frompackageElectronApp
.chore/bundle_package_root
.packages/root
as completed inguides/esm-migration.md
; adjustBUGBOT.md
package note.@rollup/plugin-json
; bumprollup
to4.52.0
(with platform bins); addtypescript@^5.6.3
.Written by Cursor Bugbot for commit 8093bd8. This will update automatically on new commits. Configure here.